package com.bjsxt.livegoods.details.service.controller;

import com.bjsxt.livegoods.details.service.service.DetailsService;
import com.bjsxt.livegoods.details.serviceapi.DetailsServiceAPI;
import com.bjsxt.livegoods.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 详情展示服务提供者-控制器
 */
@RestController
public class DetailsServiceController implements DetailsServiceAPI {
    @Autowired
    private DetailsService detailsService;


    @Override
    public Product findById(String id) {
        return detailsService.findById(id);
    }
}
